import { defineStore } from "pinia";
export const useCommonStore = defineStore({
	id: "common",
	state: () => ({
		spinning: false,
	}),

	actions: {
		setCurRequestNum(num: number) {
			this.spinning = num !== 0; //控制spin组件的状态
		},
	},
});
